#include<stdio.h>

int main(int argc,char *argv[])
{
    if(argc==1)
    {
        printf("\n");
        return 0;
    }
    FILE *fp=fopen(argv[1],"r");
    if(fp==NULL)
    {
        printf("open file %s failed!\n",argv[1]);
        return 0;
    }
    int ch;
    while((ch=fgetc(fp))!=EOF)
    {
        putchar(ch);
    }
    int flag=fclose(fp);
    if(flag!=0)
    {
        printf("close file %s failed!\n",argv[1]);
        return 0;
    }
    return 0;
}
